using Engine;
using Game;

namespace SCIENEW {
    public class WaterFluid : Fluid, IScoopableFluid, IPlaceableFluid, IPipeableFluid {
        public BiDictionary<int, int> AcquireContainer(int value) => new() { { EmptyBucketBlock.Index, WaterBucketBlock.Index } };

        public override string GetDisplayName(int value) => "水";

        public override string GetCraftingID(int value) => "WaterFluid";

        public override string GetDescription(int value) => "水，H2O，无色无味无毒，可饮用，生命之源！";

        public bool IsScoopable(int container, out int bucketIndex) {
            bucketIndex = 0;
            if (container == EmptyBucketBlock.Index) {
                bucketIndex = WaterBucketBlock.Index;
                return true;
            }
            return false;
        }

        public override Color GetColor(int value) => new(32, 80, 224, 255);

        public override int GetCongenericFluidCount() => 1;

        public int GetFluidBlockIndex(int value) => WaterBlock.Index;
    }
}